package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 车间任务对象 mes_task
 * 
 * @author ruoyi
 * @date 2024-06-01
 */
public class MesTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车间任务id */
    private Integer id;

    /** 任务编码 */
    @Excel(name = "任务编码")
    private String taskId;

    /** 销售订单编码 */
    @Excel(name = "销售订单编码")
    private String sordId;

    /** 销售订单名 */
    @Excel(name = "销售订单名")
    private String sordName;

    /** 计划编码 */
    @Excel(name = "计划编码")
    private String planId;

    /** 任务状态(0未完成/1已完成) */
    @Excel(name = "任务状态(0未完成/1已完成)")
    private Long taskStatus;

    /** 任务开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "任务开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date taskTime;

    /** 任务结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "任务结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date taskFinTime;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setTaskId(String taskId) 
    {
        this.taskId = taskId;
    }

    public String getTaskId() 
    {
        return taskId;
    }
    public void setSordId(String sordId)
    {
        this.sordId = sordId;
    }

    public String getSordId()
    {
        return sordId;
    }
    public void setSordName(String sordName) 
    {
        this.sordName = sordName;
    }

    public String getSordName() 
    {
        return sordName;
    }
    public void setPlanId(String planId)
    {
        this.planId = planId;
    }

    public String getPlanId()
    {
        return planId;
    }
    public void setTaskStatus(Long taskStatus) 
    {
        this.taskStatus = taskStatus;
    }

    public Long getTaskStatus() 
    {
        return taskStatus;
    }
    public void setTaskTime(Date taskTime) 
    {
        this.taskTime = taskTime;
    }

    public Date getTaskTime() 
    {
        return taskTime;
    }
    public void setTaskFinTime(Date taskFinTime) 
    {
        this.taskFinTime = taskFinTime;
    }

    public Date getTaskFinTime() 
    {
        return taskFinTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("taskId", getTaskId())
            .append("sordId", getSordId())
            .append("sordName", getSordName())
            .append("planId", getPlanId())
            .append("taskStatus", getTaskStatus())
            .append("taskTime", getTaskTime())
            .append("taskFinTime", getTaskFinTime())
            .toString();
    }
}
